import time
import os

WEBPATH = ".." + os.sep + "web" + os.sep
HTMLPATH = WEBPATH + "html" + os.sep

#possible colors for charts

COLORS = ["blue", "red", "green", "orange",  "yellow", "black", 
    "blue", "red", "green", "orange",  "yellow" , "black",
    "blue", "red", "green", "orange",  "yellow" , "black",
    "blue", "red", "green", "orange",  "yellow" , "black",
    "blue", "red", "green", "orange",  "yellow" , "black",
    "blue", "red", "green", "orange",  "yellow" , "black",
    "blue", "red", "green", "orange",  "yellow" , "black",
    "blue", "red", "green", "orange",  "yellow" , "black"]


def file2Generator(f):
    while True:
        data = f.read(1024 * 8) # Read blocks of 8KB at a time
        if not data: break
        yield data